#if !defined(AFX_EDITSTUDENTPAGE_H__F35032A2_18A8_11D6_8D1A_91CDB5575370__INCLUDED_)
#define AFX_EDITSTUDENTPAGE_H__F35032A2_18A8_11D6_8D1A_91CDB5575370__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EditStudentPage.h : header file
#include "StudentInformationset.h"
//

/////////////////////////////////////////////////////////////////////////////
// CEditStudentPage dialog

class CEditStudentPage : public CPropertyPage
{
	DECLARE_DYNCREATE(CEditStudentPage)

// Construction
public:
	CEditStudentPage();
	~CEditStudentPage();
private:
	CStudentInformationset* m_pStudentset;
	CDatabase* m_database;

// Dialog Data
	//{{AFX_DATA(CEditStudentPage)
	enum { IDD = IDD_EDIT_STUDENT };
	CEdit	m_EditStudentNumber;
	CEdit	m_EditStudentName;
	CEdit	m_EditSex;
	CEdit	m_EditBirthday;
	BOOL	m_Sex;
	CString	m_StudentName;
	int		m_StudentNumber;
	CString	m_Birthday;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CEditStudentPage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CEditStudentPage)
	virtual BOOL OnInitDialog();
	afx_msg void OnAdd();
	afx_msg void OnDel();
	afx_msg void OnEdit();
	afx_msg void OnFirst();
	afx_msg void OnLast();
	afx_msg void OnNext();
	afx_msg void OnPrev();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void SetValue();
	void GetValue();
	BOOL IsLastRecord();
	BOOL IsFirstRecord();
	void ClearEditText();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EDITSTUDENTPAGE_H__F35032A2_18A8_11D6_8D1A_91CDB5575370__INCLUDED_)
